package lowijs.XfDroid;

import static lowijs.XfDroid.XfDroidConstants.*;

import com.googlecode.xfdroid.R;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.webkit.WebView;

public class ViewScreenshot extends Activity {
	public void onCreate(Bundle b) {
		super.onCreate(b);
		setContentView(R.layout.viewscreenshot);
		
		String screenshotUrl = SCREENSHOT_URL + getIntent().getStringExtra(GUID) + SCREENSHOT_EXTENSION;
		
		WebView wv = (WebView)findViewById(R.id.wvScreenshot);
		wv.setBackgroundColor(Color.BLACK);
		wv.getSettings().setBuiltInZoomControls(true);
		wv.loadUrl(screenshotUrl);
	}
}
